﻿using Microsoft.EntityFrameworkCore;
using T.ApprovalRecord;
using T.Basic.Domain.T.Basic.Model;

namespace T.Basic.Repository
{
    public class EFBasicDbcontext:DbContext
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="options">数据库选项</param>
        public EFBasicDbcontext(DbContextOptions options) : base(options)
        {

        }
        //映射线路管理
       public DbSet<Line> Line { get; set; }
        //映射货主管理
        public DbSet<CargoOwner> CargoOwners { get; set; }
        //映射油费管理
        public DbSet<FuelCost> FuelCosts { get; set; }
        //映射车辆管理
        public DbSet<Vehicle> Vehicles { get; set; }
        //映射外协单位管理
        public DbSet<OutsourcedUnits> OutsourcedUnits { get; set; }
        /// <summary>
        /// 审批记录
        /// </summary>
        public DbSet<ApprovalRecordd> ApprovalRecordds {  get; set; }
    }
}
